<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./css/bootstrap/bootstrap.min.css" />
    <link rel="stylesheet" href="./css/bootstrap/bootstrap-icons.css" />
    <style>
      .modal-content {
        height: 40.5333vw;
      }
      .modal-dialog-centered {
        margin: 0 auto;
        width: 80vw;
        justify-content: center;
      }
      .modal-content .modal-header {
        justify-content: center;
      }
      .modal-footer {
        justify-content: space-around;
      }
      .modal-title {
        font-size: 4.8vw;
        font-weight: normal;
      }
      .modal-header {
        margin-top: 4.2667vw;
        border-bottom: 0;
        padding: 0;
        height: 6.4vw;
      }
      .txt {
        text-align: center;
        height: 16vw;
        line-height: 16vw;
        font-size: 4vw;
        color: #999;
      }
      .modal.fade .modal-dialog {
        transition: none;
        transform: translate(0, -30px);
      }
      .modal.show .modal-dialog {
        transform: translate(0, -30px);
      }
      .modal-footer {
        padding: 0;
      }
      .fot {
        display: flex;
        border-top: 1px solid #dee2e6;
        font-size: 4.8vw;
      }
      .btn_1 {
        flex: 1;
        margin: 0;
        padding: 0;
        border: none;
        border-right: 1px solid #dee2e6;
        outline: none;
        background-color: transparent;
        line-height: 12.8vw;
      }
    </style>
  </head>
  <body>
    <!-- 模态框提示 -->
    <div class="modal fade" id="modal">
      <div class="modal-dialog modal-lg modal-dialog modal-dialog-centered">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title">友情提示</h5>
          </div>
          <div class="txt">您确定要退出登录吗?</div>
          <div class="fot">
            <button type="button" class="btn_1" data-bs-dismiss="modal">
              取消
            </button>
            <button
              type="button"
              class="btn_1"
              id="submit"
              style="color: rgb(0, 122, 255)"
            >
              确认
            </button>
          </div>
        </div>
      </div>
    </div>
    <script src="./css/bootstrap/bootstrap.min.js"></script>
    <script>
      const modalBox = document.querySelector('#modal')
      const modal = new bootstrap.Modal(modalBox)
      modal.show()
    </script>
  </body>
</html>
